/*
 * @Author: qianmingtian
 * @Date: 2020-07-01 15:31:37
 * @LastEditors: qianmingtian
 * @LastEditTime: 2020-07-03 09:56:17
 * @FilePath: \qianmingtian.github.io\code\java\com\zhuandshao\overload\OverloadTest.java
 */ 
/** 
 * @Author: qianmingtian
 * @Date: 2020-07-01 15:31:37
 * @LastEditors: qianmingtian
 * @LastEditTime: 2020-07-03 09:20:34
 * @FilePath: \qianmingtian.github.io\code\java\com\zhuandshao\overload\OverloadTest.java
 */

package com.zhuandshao.overload;

import java.util.Stack;
class  A{
    int num;
}
public class OverloadTest {
    public OverloadTest(){

    }
    static int mult(int n,A a) {
        if (n == 1) {
            return 1;
        }
        a.num=2;
        return n * mult(n - 1,a);
    }
    public static void main(String[] args) {
        int n = 25;
        Stack<Integer> s = new Stack<>();
        
        // U.p(mult(n));

        A a = new A();
        a.num = 1;
        mult(n, a);
        System.out.println(a.num);

    }



}/*
  * @Author: qianmingtian
  * 
  * @Date: 2020-07-01 15:31:37
  * 
  * @LastEditors: qianmingtian
  * 
  * @LastEditTime: 2020-07-01 15:31:37
  * 
  * @FilePath: \qianmingtian.github.io\code\java\com\zhuandshao\OverloadTest.java
  */
